const http = uni.$u.http

// 添加账单
export const addClerk = (params) => http.post('/clerks/add', params, {custom: {successToast: false}})

// 首页列表
export const getClerks = (data) => http.get('/home/home', {data, custom: {successToast: false}})

// 删除账单
export const removeClerk = (params) => http.post('/clerks/remove', params)

// 修改账单
export const updateClerk = (params) => http.post('/clerks/update', params, {custom: {successToast: false}})

// 复制账单
export const cloneClerk = (params) => http.post('/clerks/clone', params)